package com.jianying.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.jianying.base.BaseMapper;
import com.jianying.domain.ProductShare;

@Repository("productShareMapper")
public class ProductShareMapper extends BaseMapper {

	private final static String NAME_SPACE = "com.jianying.mapper.ProductShareMapper.";
	
	public List<ProductShare> all(Integer tenantId) {
		return getSqlSessionTemplate().selectList(NAME_SPACE + "all", tenantId);
	}
	
	public List<ProductShare> byProductId(Integer productId) {
		return getSqlSessionTemplate().selectList(NAME_SPACE + "byProductId", productId);
	}
}
